﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace LotteCinema
{
    public partial class DangNhapAction : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                DataTable dtTV = CProvider.Docbang("exec SP_DANGNHAP_THANHVIEN '" + Request["username"] + "','" + Request["password"] + "'");
                Response.Write("ĐĂNG NHẬP THÀNH CÔNG!");
                Session["matv"] = dtTV.Rows[0][0].ToString();
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
        }
    }
}